package com.huazhi.wzsnw.mapper;

import com.huazhi.wzsnw.model.Village;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface VillageMapper {
    int deleteByPrimaryKey(String tid);

    int insert(Village record);

    int insertSelective(Village record);

    Village selectByPrimaryKey(String tid);

    int updateByPrimaryKeySelective(Village record);

    int updateByPrimaryKey(Village record);

    List<String> selectListTidBySearch(@Param("key") String key);

    List<Village> findPagingByListTid(@Param("listTid") List<String> listTid, @Param("pageIndex") Integer pageIndex, @Param("pageSize") Integer pageSize);

    List<String> getTidByName(@Param("name") String name);

    List<Village> getAllVillage();

    List<Village> getPeasantNumberOfVillage();

    List<Village> selectAllVillage(@Param("pageIndex") Integer pageIndex,@Param("pageSize") Integer pageSize,@Param("key") String key);

    List<Village> selectByXzc(@Param("key") String key,@Param("pageIndex") Integer pageIndex,@Param("pageSize") Integer pageSize);

    List<Village> slectByName(String name);
}